package jse.dao;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class Dao {
	
	@Autowired
	JdbcTemplate jdbcTemplate;
	
	public List<Map<String,Object>> query(String tableName){
		return jdbcTemplate.queryForList("select * from "+tableName);
	}
}
